<%@page contentType="text/html; charset=UTF-8"%>
<script type="text/javascript" src="<%=contextPath%>/resources/hui/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="<%=contextPath%>/resources/hui/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="<%=contextPath%>/resources/hui/h-ui/js/H-ui.js"></script> 
<script type="text/javascript" src="<%=contextPath%>/resources/hui/h-ui.admin/js/H-ui.admin.page.js"></script>
<script>
$(function(){
	var home="<%=contextPath%>/admin/index";//管理后台首页
    var menu="首页";
    var item="我的桌面";
    if(location.href.indexOf("/admin/index")<0){
    	$('.menu_dropdown dl dd li').click(function(){
        	$.cookie('current', $(this).parents("dl").attr("index")+"-"+$(this).attr("index"), {expires: 3600 * 24 * 30, path: '/'});
        });
        var clickMenu = $.cookie('current');
     
    	if (clickMenu != undefined) {
    		var ms=clickMenu.split("-");
    			$('.menu_dropdown dl ').each(function() {
    				var i = $(this).attr("index");
    				if (i === ms[0]) {
    					$(this).find("dd").css('display', 'block');
    					menu=$(this).attr("title");
    					 $(this).find("li").each(function(k){
    						 k=k+1+""
    						if(k===ms[1]){
    							$(this).addClass('current');
    							item=$(this).text();
    						}
    					}); 
    				}
    				
    			});
    		}
    }
    
		var html = "<nav class=\"breadcrumb\"><i class=\"Hui-iconfont\">&#xe67f;</i><a href="+home+" class=\"maincolor\">首页</a> <span class=\"c-gray en\">&gt;</span> "
				+ menu
				+ " <span class=\"c-gray en\">&gt;</span> "
				+ item
				+ "<a class=\"btn btn-success radius r\" style=\"line-height:1.6em;margin-top:3px\" href=\"javascript:location.replace(location.href);\" title=\"刷新\" ><i class=\"Hui-iconfont\">&#xe68f;</i></a></nav>";
		$("section").append(html);

	});
</script> 
</body>
</html>